package cn.chen.config;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyConfig {
    @Bean
    public MyDateSource getDataSource() {
        MyDateSource myDateSource = new MyDateSource();
        myDateSource.setUrl("jdbc:mysql://localhost:3306/db");
        myDateSource.setUser("root");
        myDateSource.setPassword(111111);
          return myDateSource;
    }
}
